const mock = require('mockjs');
mock.mock('/mock/getMenuList', 'get',
  {
    code: '200',
    msg: '请求成功!',
    data: {
      list: [{
        id: 100,
        menuName: 'home',
        menuUrl: '/feng/page1',
        menuCode: 'feng.page1',
        icon: 'icon home',
        children: [{
          id: 1001,
          menuName: 'page1',
          menuUrl: '/feng/page1',
          menuCode: 'feng.page1',
        },
        {
          id: 1002,
          menuName: 'page2',
          menuUrl: '/feng/page2',
          menuCode: 'feng.page2'
        }, {
          id: 1003,
          menuName: 'page3',
          menuUrl: '/feng/page3',
          menuCode: 'feng.page3'
        }, {
          id: 1004,
          menuName: 'layer',
          menuUrl: '/feng/layer',
          menuCode: 'feng.layer'
        }, {
          id: 1005,
          menuName: 'ztree',
          menuUrl: '/feng/ztree',
          menuCode: 'feng.ztree'
        }, {
          id: 1006,
          menuName: 'form',
          menuUrl: '/feng/form',
          menuCode: 'feng.form'
        }, {
          id: 1007,
          menuName: 'selfTable',
          menuUrl: '/feng/selfTable',
          menuCode: 'feng.selfTable'
        }],
      }, {
        id: 200,
        menuName: 'echart',
        menuUrl: '/feng/echart',
        menuCode: 'feng.echart',
        children: [{
          id: 2001,
          menuName: 'graph',
          menuUrl: '/feng/graph',
          menuCode: 'feng.graph',
        }, {
          id: 2002,
          menuName: 'line',
          menuUrl: '/feng/line',
          menuCode: 'feng.line',
        }, {
          id: 2003,
          menuName: 'radar',
          menuUrl: '/feng/radar',
          menuCode: 'feng.radar',
        }]
      }, {
        id: 300,
        menuName: 'd3',
        menuUrl: '/feng/d3',
        menuCode: 'feng.d3',
        children: [{
          id: 3001,
          menuName: 'circle',
          menuUrl: '/feng/circle',
          menuCode: 'feng.circle',
        }]
      }, {
        id: 400,
        menuName: 'ng',
        menuUrl: '/feng/ng',
        menuCode: 'feng.ng',
        children: [{
          id: 4001,
          menuName: 'ngRepeat',
          menuUrl: '/feng/ngRepeat',
          menuCode: 'feng.ngRepeat'
        }]
      }, {
        id: 500,
        menuName: 'selfComponent',
        menuUrl: '/feng/selfComponent',
        menuCode: 'feng.selfComponent',
        children: [{
          id: 5001,
          menuName: 'timeLine',
          menuUrl: '/feng/timeLine',
          menuCode: 'feng.timeLine'
        }]
      }]
    }
  }
)